#!/bin/sh

# 开课吧获取手机验证码
url="https://api-passport.kaikeba.com/web/verify_code";

if [ "$#" -ne 1 ];
then
	echo "参数错误 Ex:kkb_verify.sh 18701196448";
	exit 1;
fi

username=$1;
#userpass=$2;
#echo "params num:$#"
#echo "用户：$1";

post_data="{
	\"mobile\": \"$username\"
}";

##cookie_file="./"${username}".cookie";
#cookie_file="./cookie.txt";


curl -X POST \
  "$url" \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: 4cbc8f4f-1eec-cb89-c462-1f20ddc3b857' \
  -d "$post_data"

##echo $post_data;
